<?php
// load xml from string variable. 

$xmlText = "<?xml version=\"1.0\" standalone=\"yes\"?><library><book><title>Pride and Prejudice</title><author>Jane Austen</author></book></library>";

$xml = simplexml_load_string($xmlText);
var_dump($xml);


?>

